public class test学生信息 {
    public static void main(String[] args){
        Student lyx=new Student();
        lyx.name="小明";
        lyx.gender="软件工程";
        lyx.age=18;
        lyx.id=3;
        lyx.score=100;
        System.out.println(lyx.say());
    }
}
class Student{
    String name;
    String gender;
    int age;
    int id;
    double score;
    public  String say(){
        String say= "我是" + name + ", 性别" + gender +", 年龄" +age+",学号为" + id + ", 得分是" +score;
        return say;
    }
}